package com.lg.algorithm.leetcode;

import java.util.Arrays;
import java.util.List;

public class Base {
    public static void main(String[] args) {
        String[] arr = "1,2,3".split(",");
        System.out.println(Arrays.toString(arr));
        List<String> strings = Arrays.asList(arr);
        int[] ints = strings.stream().mapToInt(Integer::parseInt).toArray();
        System.out.println(ints);
    }
}
